package com.example.esp8266.activity.utile;
/**
 * 投口工具类
 * */
public class MouthpieceTool {
    public MouthpieceTool() {

    }
    public String getBoardId(){
        return "551A00010100AA";
    }
    public String getHyphen(){
        return "550200010000AA";
    }
    //投口延时时间
    public String openingTime(long time){
        String openingTime = "55110001"+TranscodingUtils.toHex(time,2)+"00AA";
        return openingTime;
    }
    public String openingTimeRead(){
        return "55110001FF00AA";
    }
    //喷淋消杀时间
    public String sprayTime(long time){
        String sprayTime = "55030001"+TranscodingUtils.toHex(time,2)+"00AA";
        return sprayTime;
    }
    public String sprayTimeRead(){
        return "55030001FF00AA";
    }
    //推杆动作时间
    public String pushRodTime(long time){
        String pushRodTime = "551C0001"+TranscodingUtils.toHex(time,2)+"00AA";
        return pushRodTime;
    }
    public String pushRodTimeRead(){
        return "551C0001FF00AA";
    }
    //设置工作模式
    public String operatingMode(long time){
        String operatingMode = "55010001"+TranscodingUtils.toHex(time,2)+"00AA";
        return operatingMode;
    }
    public String operatingModeRead(){
        return "55010001FF00AA";
    }
    //设置电流等级
    public String pushRodCurrentLevel(long time){
        String pushRodCurrentLevel = "551D0001"+TranscodingUtils.toHex(time,2)+"00AA";
        return pushRodCurrentLevel;
    }
    public String pushRodCurrentLevelRead(){
        return "551D0001FF00AA";
    }
    // 音量
    public String volumeLeaveSubmit(long volume){
        String volumeLeave = "55  0001"+TranscodingUtils.toHex(volume,2)+"00AA";
        return volumeLeave;
    }
    public String volumeLeaveRead(){
        return "55  0001  00AA";
    }
    //设置传感器斜率
    public String sensorSlope(long time){
        String sensorSlope = "55040001"+TranscodingUtils.toHex(time,2)+"00AA";
        return sensorSlope;
    }
    //去皮
    public String peel(){
        return "550800010000AA";
    }
    //投口在线情况
    public String getOnLine(){
        return "550900010000AA";
    }
    //设置校准砝码重量
    public String weightOfWeight(String Mouthpiece,long weight){
        String weightOfWeight = "55070002"+Mouthpiece+TranscodingUtils.toHex(weight,2)+"00AA";
        return weightOfWeight;
    }
    public String weightOfWeightRead(String Mouthpiece){
        String weightOfWeight = "55070002"+Mouthpiece+"FF"+"00AA";
        return weightOfWeight;
    }
    //设置桶内最大容量
    public String maximumCapacity(long weight){
        String maximumCapacity = "55050001"+TranscodingUtils.toHex(weight,2)+"00AA";
        return maximumCapacity;
    }
    public String maximumCapacityRead(){
        return "55050001FF00AA";
    }

    // 设置垃圾类型
    public String setGarbageType(String Mouthpiece , String garbageType){
        String setGarbageType = "55060002"+Mouthpiece+garbageType+"00AA";
        return setGarbageType;
    }
    //  垃圾类型 读取
    public String GarbageTypeRead(String Mouthpiece){
        return "55060002"+Mouthpiece +"FF00AA";
    }

    //获取投口重量 当前桶重
    public String getFeedingWeight(String Mouthpiece){
        String getFeedingWeight = "55000001"+Mouthpiece+"00AA";
        return getFeedingWeight;
    }
    //推杆正反反向
    public String pushRodDirection(String Mouthpiece,String Direction){
        String weightOfWeight = "550A0002"+Mouthpiece+Direction+"00AA";
        return weightOfWeight;
    }
    public String pushRodDirectionRead(String Mouthpiece){
        String weightOfWeight = "550A0002"+Mouthpiece+"FF"+"00AA";
        return weightOfWeight;
    }
    //系统复位
    public String systemReset(){
        return "551F00010000AA";
    }
    //系统解锁
    public String unlock(){
        return "551000010000AA";
    }

}
